/**
 * 
 */
package org.softTank.BC.dao;

import java.util.List;

import org.hibernate.Hibernate;
import org.softTank.BC.entity.services.Type;
import org.springframework.stereotype.Repository;
import org.springside.modules.orm.hibernate.HibernateDao;

/**
 * @author Yuzone
 * 
 */
@Repository
public class TypeDao extends HibernateDao<Type, Long> {

	/**
	 * 初始化Type的延迟加载关联typeList.
	 */
	public void initAllProperties(List<Type> typeList) {
		for (Type type : typeList) {
			Hibernate.initialize(type);
		}
	}
}
